﻿@model UserSettingsViewModel
@{
    ViewBag.Title = "Settings";
    Layout = "~/Views/Shared/CustomerLayout.cshtml";
}

<h2>Ustawienia konta</h2>

@if (Model != null)
{
    using (Html.BeginForm())
    {
                <div class="form">
                    <div class="formtitle">Użytkownik:</div>
                        <div class="input">
				            <div class="inputtext">Wyświetlana nazwa:</div>
				            <div class="inputcontent">
					            @Html.TextBoxFor(x => x.UserDisplayName)
				            </div>
			            </div>	
                        
                        <div class="input">
				            <div class="inputtext">Hasło</div>
				            <div class="inputcontent">
					            @Html.PasswordFor(x => x.UserPassword)
				            </div>
			            </div>

                        <div class="input">
				            <div class="inputtext">E-mail</div>
				            <div class="inputcontent">
					            @Html.DisplayFor(x => x.UserEmail)
				            </div>
			            </div>

                        <div class="input">
				            <div class="inputtext">Data utworzenia</div>
				            <div class="inputcontent">
					            @Model.UserDateCreated.ToString("dd MMMM yyyy");
				            </div>
			            </div>

                        <div class="input">
				            <div class="inputtext">Wybrana agencja</div>
				            <div class="inputcontent">
					            @Html.DisplayFor(x => x.AgencyName)
				            </div>
			            </div>

                        <div class="input">
				            <div class="inputtext">Wypożyczeń</div>
				            <div class="inputcontent">
					            @Html.DisplayFor(x => x.HiresCount)
				            </div>
			            </div>

                        <div class="input">
				            <div class="inputtext">Komentarzy</div>
				            <div class="inputcontent">
					            @Html.DisplayFor(x => x.CommentsCount)
				            </div>
			            </div>

                        <div class="input nobottomborder">
				            <div class="inputtext">Oddanych głosów</div>
				            <div class="inputcontent">
					            @Html.DisplayFor(x => x.VotesCount)
				            </div>
			            </div>

			            <div class="buttons">
				            <input class="orangebutton" type="submit" value="Zapisz" />
			            </div>
                </div>
    }
}
else
{
    <p>Nie odnaleziono użytkownika</p> 
}